//
//  GXQRCodeManager.h
//  ScanQRCode
//
//  Created by Ssky on 2016/11/21.
//  Copyright © 2016年 Sky SS. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <UIKit/UIKit.h>
@class GXQRCodeManager;


typedef enum {
    //
    kObjectTypeDefault = 0, //默认-错误类型
    kObjectTypeString,      //字符串类型
    kObjectTypeHyperlink,   //超链接/网址类型
}BackObjectType;


@protocol GXQRCodeManagerDelegate <NSObject>

@optional
- (void)gxQRCodeManager:(GXQRCodeManager *)gxCodemanager backObject:(NSString *)backObject backObjectType:(BackObjectType)backObjectType;

@end

@interface GXQRCodeManager : NSObject

@property (nonatomic,weak) id<GXQRCodeManagerDelegate> codeDelegate;

+ (instancetype)manager;

@property (nonatomic, strong) UIView * preview;

@property (nonatomic, readonly) AVCaptureSession * session;




//- (BOOL)startRunning;






@end
